﻿using DDD.Domain.Abstract.GuidGenerator;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;

namespace DDD.Domain.Abstract;

public sealed class DomainAbstractModule : AbpModule
{

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddKeyedSingleton<IGuidGenerator, SequentialAsBinaryGuidGenerator>(nameof(SequentialAsBinaryGuidGenerator));
        context.Services.AddKeyedSingleton<IGuidGenerator, SequentialAtEndGuidGenerator>(nameof(SequentialAtEndGuidGenerator));
    }
}
